package com.linkstec.bookshop.pojo;

/**
 * 
 * @ClassName: Goods 数据库表goods（商品表）的实体类
 * @Description:TODO
 * @author: JGQiang
 * @date: 2018年11月22日 下午2:01:08
 */
public class Goods {

	private int goodsId;// 商品id

	private int bookId;// 外键，书id

	private int number;// 上架的数量

	private double price;// 价格

	private int salNum;// 销售量

	private int gState;// 是否可用

	private int ishot;// 是否热门

	public int getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(int goodsId) {
		this.goodsId = goodsId;
	}

	public int getBookId() {
		return bookId;
	}

	public void setBookId(int bookId) {
		this.bookId = bookId;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getSalNum() {
		return salNum;
	}

	public void setSalNum(int salNum) {
		this.salNum = salNum;
	}

	public int getgState() {
		return gState;
	}

	public void setgState(int gState) {
		this.gState = gState;
	}

	public int getIshot() {
		return ishot;
	}

	public void setIshot(int ishot) {
		this.ishot = ishot;
	}

	@Override
	public String toString() {
		return "Goods [goodsId=" + goodsId + ", bookId=" + bookId + ", number=" + number + ", price=" + price
				+ ", salNum=" + salNum + ", gState=" + gState + ", ishot=" + ishot + "]";
	}

}
